package cn.boge.org.utils;

import java.util.List;

public class QueryResult<T> {

    // 总条数
    private Long totals;
    // 返回的数据
    private List<T> data;

    public QueryResult() {
        super();
    }

    public QueryResult(Long totals, List<T> data) {
        super();
        this.totals = totals;
        this.data = data;
    }

    public Long getTotals() {
        return totals;
    }

    public void setTotals(Long totals) {
        this.totals = totals;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

}
